﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Finbook.GameApp.Models
{
    public class RoleV2
    {
        public List<Skill> Skills { get; set; }
        public int HP { get; set; }
        public RoleV2()
        {}
        public RoleV2(int hp)
        {
            HP = hp;
            Skills = new List<Skill>();
        }
        public void BeHit(Skill skill)
        {
            HP -= skill.SkillDamage;
            HP = HP <= 0 ? 0 : HP;
        }
    }
}
